<?php
/**
 * 添加员工
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019-04-08
 * Time: 下午 3:05
 */
defined('IN_IA') or exit('Access Denied');
require MODULE_ROOT.'/vendor/autoload.php';
global $_GPC,$_W;
if($_W['container'] != 'wechat' || $_W['os'] != 'mobile'){
	message('本系统仅支持在手机端微信打开','','info');
	exit;
}




if(isset($_GPC['type']) && !empty($_GPC['type'])){
    if(!is_file(MODULE_ROOT.'/scan/'.ucwords($_GPC['type'].'Scan').'.php')){
        exit(ucwords($_GPC['type'].'Scan').'.php文件不存在');
    }
    $_action = call_user_func('execClass','Scan\\'.ucwords($_GPC['type'].'Scan'));
    $_result = call_user_func('execMethod',$_action,'index');
}else{
    $_result = array('status'=>'error','err_msg'=>'非法操作');
}



include $this->template('scan/scan');